package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyong
 * @since 2019-12-04
 */
@TableName("game_user")
public class GameUser extends Model<GameUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 游戏用户
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 比心唯一标识
     */
    @TableField("open_id")
    private String openId;
    @TableField("nick_name")
    private String nickName;
    /**
     * 0-女  1-男  2-未知
     */
    private Integer gender;
    /**
     * 消消乐分数
     */
    private BigDecimal score;
    /**
     * 消消乐金币数
     */
    private Integer coins;
    /**
     * 萌宠分数
     */
    @TableField("mc_score")
    private BigDecimal mcScore;
    /**
     * 萌宠金币
     */
    @TableField("mc_coins")
    private Integer mcCoins;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 注册时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 最近游戏时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public Integer getCoins() {
        return coins;
    }

    public void setCoins(Integer coins) {
        this.coins = coins;
    }

    public BigDecimal getMcScore() {
        return mcScore;
    }

    public void setMcScore(BigDecimal mcScore) {
        this.mcScore = mcScore;
    }

    public Integer getMcCoins() {
        return mcCoins;
    }

    public void setMcCoins(Integer mcCoins) {
        this.mcCoins = mcCoins;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GameUser{" +
        ", id=" + id +
        ", openId=" + openId +
        ", nickName=" + nickName +
        ", gender=" + gender +
        ", score=" + score +
        ", coins=" + coins +
        ", mcScore=" + mcScore +
        ", mcCoins=" + mcCoins +
        ", avatar=" + avatar +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
